package com.shenzhen.horselive.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.shenzhen.horselive.R;
import com.shenzhen.horselive.beans.MyTeamBean;

import org.jetbrains.annotations.NotNull;

public class MyTeanAdapter extends BaseQuickAdapter<MyTeamBean.DataBean.UserDirectTeamBean, BaseViewHolder> {
    public MyTeanAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, MyTeamBean.DataBean.UserDirectTeamBean userDirectTeamBean) {
        baseViewHolder.setText(R.id.tv_zhitui,"直推："+userDirectTeamBean.getDirectCount()+"人")
                .setText(R.id.tv_tuandui,"团队："+userDirectTeamBean.getTeamCount()+"人");
        baseViewHolder.setText(R.id.tv_level,userDirectTeamBean.getGradeName());

    }
}
